﻿<Window x:Class="LogoScriptIDE.ReplaceWindow"
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        Title="Replace" SizeToContent="WidthAndHeight" ResizeMode="NoResize" Closing="Window_Closing">
    <StackPanel Margin="10">
        <Grid>
            <Grid.RowDefinitions>
                <RowDefinition/>
                <RowDefinition/>
            </Grid.RowDefinitions>
            <Grid.ColumnDefinitions>
                <ColumnDefinition/>
                <ColumnDefinition/>
            </Grid.ColumnDefinitions>
            <Label Grid.Row="0" Grid.Column="0" Content="Content to search : " Margin="5"/>
            <TextBox Grid.Row="0" Grid.Column="1" Name="ui_text" MinWidth="250" Margin="5" HorizontalAlignment="Stretch" TextChanged="ui_text_TextChanged" />
            <Label Grid.Row="1" Grid.Column="0" Content="Replace by : " Margin="5"/>
            <TextBox Grid.Row="1" Grid.Column="1" Name="ui_replaceText" MinWidth="250" Margin="5" HorizontalAlignment="Stretch"/>
        </Grid>
        <CheckBox Name="ui_case" Content="Case Sensitive" Margin="5"/>
        <StackPanel Orientation="Horizontal" HorizontalAlignment="Right">
            <Button Name="ui_search" Content="Search Next" Click="ui_search_Click" Margin="5" IsEnabled="False"/>
            <Button Name="ui_replace" Content="Replace" Click="ui_replace_Click" Margin="5" IsEnabled="False"/>
            <Button Name="ui_replaceAll" Content="Replace All" Click="ui_replaceAll_Click" Margin="5" IsEnabled="False"/>
            <Button Name="ui_cancel" Content="Cancel" Click="ui_cancel_Click" Margin="5"/>
        </StackPanel>
    </StackPanel>
</Window>
